<meta http-equiv="refresh" content="1">

<h1>Working<span id="ellipsisSpan"></span></h1>
<textarea id="status" rows="20" cols="100">
<?php echo $this->status_message;?>
</textarea>
<script language="javascript">
function scrollToBottom(obj) {
    obj.scrollTop=obj.scrollHeight; 
}

scrollToBottom(document.getElementById("status"));

var ellipsis = ['', '.', '..', '...'];
var runEllipsis = false;

function animateEllipsis(el, count) {
    el.innerHTML = ellipsis[count%4];
    if(runEllipsis == true) {
        window.setTimeout( function(){
            animateEllipsis(el, ++count);
        }, 250);
    }
}

function startEllipsis() {
    runEllipsis = true;
    animateEllipsis(document.getElementById('ellipsisSpan'), 0);
}


function stopEllipsis() {
    runEllipsis = false;
}

startEllipsis();
</script>